package com.bw.mallshot;


import androidx.databinding.ObservableField;

import com.blankj.utilcode.util.LogUtils;
import com.bw.mvvm.custom.BottomCustom;
import com.bw.mvvm.entity.BaseEntity;
import com.bw.mvvm.mvvm.viewmodel.BaseViewModel;

import org.greenrobot.eventbus.EventBus;


public class MainViewModel extends BaseViewModel<MainModel> implements BottomCustom.BottomSelectLinstenner {

    @Override
    protected void result(BaseEntity entity) {

    }


    @Override
    public void onselect(int id) {

        switch (id) {
            case R.id.my_zy:
                EventBus.getDefault().post("home");
                break;
            case R.id.my_fl:
                EventBus.getDefault().post("classfiy");
                break;
            case R.id.my_gwc:
                EventBus.getDefault().post("shopping");
                break;
            case R.id.my_xx:
                EventBus.getDefault().post("news");
                break;
            case R.id.my_my:
                EventBus.getDefault().post("my");
                break;

        }
    }

}
